<?php
use AepSdk\Apis\Core\AepSdkCore;
require_once dirname(__DIR__) . '\Apis\Core\AepSdkCore.php';

class Device_archives
{
    //参数body: 类型json, 参数不可以为空
    //  描述:body,具体参考平台api说明
    public static function DeleteArchivesInfo($appKey, $appSecret, $body)
    {
        $path="/device_archives/deleteArchivesInfo";
        $headers=null;
        $param=null;
        $version ="20231117042743";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
        if ($response != null){
            return $response;
        }
        return null;
    }

    //参数body: 类型json, 参数不可以为空
    //  描述:body,具体参考平台api说明
    public static function GetArchivesAttribute($appKey, $appSecret, $body)
    {
        $path="/device_archives/getArchivesAttr";
        $headers=null;
        $param=null;
        $version ="20231117042748";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
        if ($response != null){
            return $response;
        }
        return null;
    }

    //参数body: 类型json, 参数不可以为空
    //  描述:body,具体参考平台api说明
    public static function UpdateArchivesInfo($appKey, $appSecret, $body)
    {
        $path="/device_archives/updateArchivesInfo";
        $headers=null;
        $param=null;
        $version ="20231117042738";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
        if ($response != null){
            return $response;
        }
        return null;
    }

    //参数body: 类型json, 参数不可以为空
    //  描述:body,具体参考平台api说明
    public static function AddArchivesInfo($appKey, $appSecret, $body)
    {
        $path="/device_archives/addArchivesInfo";
        $headers=null;
        $param=null;
        $version ="20231215034317";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
        if ($response != null){
            return $response;
        }
        return null;
    }

    //参数searchValueType: 类型long, 参数可以为空
    //  描述:1：按设备id查询，2：按设备类型查询
    //参数searchValue: 类型String, 参数可以为空
    //  描述:
    //参数pageNow: 类型long, 参数不可以为空
    //  描述:
    //参数pageSize: 类型long, 参数不可以为空
    //  描述:
    public static function GetArchivesInfo($appKey, $appSecret, $pageNow, $pageSize, $searchValueType = "", $searchValue = "")
    {
        $path="/device_archives/getArchivesInfo";
        $headers=null;
        $param=array();
        $param["searchValueType"]=$searchValueType;
        $param["searchValue"]=$searchValue;
        $param["pageNow"]=$pageNow;
        $param["pageSize"]=$pageSize;

        $version ="20231215034340";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, null, $version, $application, $secret, "GET");
        if ($response != null){
            return $response;
        }
        return null;
    }

    //参数body: 类型json, 参数不可以为空
    //  描述:body,具体参考平台api说明
    public static function GetDeviceType($appKey, $appSecret, $body)
    {
        $path="/device_archives/getDeviceType";
        $headers=null;
        $param=null;
        $version ="20231215034248";

        $application=$appKey;
        $secret=$appSecret;

        $response = AepSdkCore::sendSDkRequest($path, $headers, $param, $body, $version, $application, $secret, "POST");
        if ($response != null){
            return $response;
        }
        return null;
    }


}
